#define _CRT_SECURE_NO_WARNINGS 1
int main() {
    char ch[13];
    scanf("%s", ch);
    int i = 0;
    int j = 1;
    int s = 0;
    for (i = 0; i < 11; i++) {
        if (ch[i] != '-') {
            s += (ch[i] - '0') * j;
            j++;
        }
    }
    int m = s % 11;
    if (m == ch[12] - '0' || (m == 10 && ch[12] == 'X')) {
        printf("Right\n");
    }
    else {
        if (m == 10) {
            for (i = 0; i < 12; i++) {
                printf("%c", ch[i]);
            }
            printf("X");
        }
        else {
            for (i = 0; i < 12; i++) {
                printf("%c", ch[i]);

            }
            printf("%d", m);
        }
    }
    return 0;

}

int main()
{
    double a = 0;
    double b = 0;
    char ch;
    scanf("%lf%c%lf", &a, &ch, &b);
    if (ch == '+')
    {
        printf("%.4lf%c%.4lf=%.4lf", a, ch, b, (a + b));
    }
    else if (ch == '-')
    {
        printf("%.4lf%c%.4lf=%.4lf", a, ch, b, (a - b));
    }
    else if (ch == '*')
    {
        printf("%.4lf%c%.4lf=%.4lf", a, ch, b, (a * b));
    }
    else if (ch == '/')
    {
        if (b == 0.0)
        {
            printf("Wrong!Division by zero!");
        }
        else {
            printf("%.4lf%c%.4lf=%.4lf", a, ch, b, (a / b));
        }
    }
    else {
        printf("Invalid operation!\n");
    }
    return 0;
}

int main()
{
    int n = 0;
    while (scanf("%d", &n) == 1)
    {
        int i = 0;
        for (i = 1; i <= n; i++)
        {
            printf("Happy new year!Good luck!\n");

        }
    }
    return 0;
}

int main()
{
    long int n = 0;
    long int s = 0;
    scanf("%ld", &n);
    for (int i = 0; i <= n; i++)
    {
        s = s + i;
    }
    printf("%ld\n", s);
    return 0;
}

int main()
{
    int n = 0;
    scanf("%d", &n);
    int count = 0;
    int count1 = 0;
    for (int i = 1; i <= n; i++)
    {
        if (i % 2 == 0)
        {
            count = count + 1;
        }
        else {
            count1 = count1 + 1;
        }
    }
    printf("%d %d", count1, count);
    return 0;
}

int main()
{
    int i = 0;
    int j = 0;
    int count = 0;
    for (i = 100; i < 1000; i++)
    {
        for (j = 2; j < i; j++)
        {
            if (i % j == 0)
            {
                count++;
                break;
            }

        }
    }
    printf("%d", 900 - count);
    return 0;
}

#include <stdio.h>
int main() {
    int i = 0;
    int j = 0;
    for (i = 1; i < 10; i++) {
        for (j = 1; j <= i; j++) {
            printf("%d*%d=%2d", j, i, i * j);
        }
        printf("\n");
    }
    return 0;
}

int main()
{
    int n = 0;
    int i = 0;
    int s = 0;
    int s1 = 0;
    scanf("%d", &n);
    for (i = 0; i <= n; i++)
    {
        if (i % 2 == 0)
        {
            s = s - i;
        }
        else
        {
            s1 = s1 + i;
        }

    }
    printf("%d\n", s1 + s);
    return 0;
}

int main()
{
    double  i = 0;
    int n = 0;
    double sum = 0;
    scanf("%d", &n);
    for (i = 1; i <= n; i++)
    {
        sum += 1.0 / i;
    }
    printf("%.6lf", sum);
    return 0;
}